package com.hl.toolkit.server.tycoin.user.slaverepository;

import com.tycoin.common.repository.AbstractRepository;
import com.tycoin.user.slaveentity.TycoinUser;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Repository;


@Repository
@CacheConfig(cacheNames = "com.tycoin.user.slaverepository.TycoinUserRepository")
public interface TycoinUserRepository extends AbstractRepository<TycoinUser, Long> {
  
	
 	TycoinUser findOneBymobile(String mobile);

	TycoinUser findOneByusername(String userName);
	
	
	TycoinUser findBymobile(String mobile);	
	
	
	TycoinUser findOneByemail(String email);

	TycoinUser findOneByweixin(String weixin);


	TycoinUser findByid(Long mobile);

//	TycoinUser findOneByaccesstoken(String accesstoken);
	
	
}
